package com.bdk.middle.order.api.client;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.order.api.domain.OrderDeliveryDO;
import com.bdk.middle.order.api.query.OrderDeliveryQueryDO;
import org.springframework.web.bind.annotation.*;

public interface OrderDeliveryClientApi {

    /**
     * 添加用户
     * @param domain 用户DO
     * @return ResultDO
     */
    @RequestMapping(value="/order_deliver_cliet_api/add.html", method = RequestMethod.POST)
    public @ResponseBody
    ResultDO add(@RequestBody OrderDeliveryDO domain);

    /**
     * 修改用户信息
     * @param domain 用户DO
     * @return ResultDO
     */
    @RequestMapping(value="/order_deliver_cliet_api/edit.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO edit(@RequestBody OrderDeliveryDO domain);

    /**
     * 修改用户信息
     * @param id
     * @param status
     * @return ResultDO
     */
    @RequestMapping(value="/order_deliver_cliet_api/updateStatus.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO updateStatus(@RequestParam("id")String id, @RequestParam("status")int status);

    /**
     * 获取用户详情
     * @param id 用户ID
     * @return ResultDO
     */
    @RequestMapping(value="/order_deliver_cliet_api/get.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO get(@RequestParam("id")String id);

    /**
     * 删除用户
     * @param id 用户ID
     * @param modifier 修改人用户名
     * @return ResultDO
     */
    @RequestMapping(value="/order_deliver_cliet_api/remove.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO remove(@RequestParam("id")String id, @RequestParam("modifier")String modifier);

    /**
     * 查找用户列表分页
     * @param domain 查询DO
     * @return ResultDO
     */
    @RequestMapping(value="/order_deliver_cliet_api/find.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO find(@RequestBody OrderDeliveryQueryDO domain);
}
